# -*- coding: utf-8 -*-
# @Time    : 2021/10/28 13:50
# @Author  : ydh
# @File    : urls.py
# @Software: PyCharm
from django.urls import include, path
from rest_framework import routers
from apps.book.views import BookInfoView, AuthorInfoView, CategoryInfoView, PubHouseInfoView

router = routers.DefaultRouter()
router.register(r'book_info', BookInfoView)
router.register(r'author', AuthorInfoView)
router.register(r'category', CategoryInfoView)
router.register(r'pub', PubHouseInfoView)

# Wire up our API using automatic URL routing.
# Additionally, we include login URLs for the browsable API.
urlpatterns = [
    path('', include(router.urls)),
]
urlpatterns += router.urls
